//
//  paymentTableViewCell.m
//  OneCreditTreasure
//
//  Created by iOS Tedu on 16/8/26.
//
//

#import "paymentTableViewCell.h"

@implementation paymentTableViewCell
#pragma mark - 生命周期 life cycle
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self payView];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

#pragma mark - 懒加载 lazy loading
- (DownPaymentView *)payView {
    if(_payView == nil) {
        _payView = [[DownPaymentView alloc] init];
        _payView.backgroundColor = kRGBA(234, 234, 234, 1);
        [self.contentView addSubview:_payView];
        [_payView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(0);
        }];
    }
    return _payView;
}

@end
